package com.niubility.vo;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: LoadandPage
 * @Description: 进行分页输出并将当前页数一起提交到前端  方便翻页操作获取当前页数
 * @author: 张家乐
 * @DATE: 2018/2/2
 */
public class LoadandPage<T> implements Serializable{
    List<T> list;
    int page;

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public int getPage() {
        return page;
    }

    @Override
    public String toString() {
        return "LoadandPage{" +
                "list=" + list.toString() +
                ", page=" + page +
                '}';
    }

    public void setPage(int page) {
        this.page = page;
    }
}
